const express = require('express');
const app = express();
const history = require('connect-history-api-fallback');
app.use(history());
app.use(express.static(__dirname + '/static'));

app.get('/person', (req, resp) => {
    resp.send({
        name: 'Tom',
        age: 18
    });
});

app.listen(5005, (err) => {
    if (!err) {
        console.log('服务器启动成功了！');
    }
});